package chapter13;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 *
 * @author liuziyang
 * @create 2018-03-25 21:22
 */
public class CollectionsTest {
    public static void main(String[] args) {
        List<String> strings = new ArrayList<>();
        Collections.addAll(strings,"test1","test2","test4");
        strings.forEach(System.out::println);

        Collections.reverse(strings);
        strings.forEach(System.out::println);
    }
}
